import { h, render } from 'preact';
import Circle from '../basic-shape/Circle';
import BaseNode from './BaseNode';

export default class CircleNode extends BaseNode {
  getShape () {
    const attributes = this.getAttributes();
    return <Circle
      {...attributes}
    />
  }
  getArchorsPosition() {
    const { x, y, r } = this.getAttributes();
    return [
      { x: x + r, y: y },
      { x, y: y + r  },
      { x: x- r, y },
      { x, y: y - r }
    ]
  }
}
